﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UDDL.Model;
using System.IO;

namespace UDDL.Test
{
	class Program
	{
		static void Main(string[] args)
		{
			String filename = "../../../Test/test.uddl";
			using (TextReader reader = new StreamReader(filename))
			{
				String source = reader.ReadToEnd();
				UDDL.Parser.Parser parser = new UDDL.Parser.Parser(filename, source);
				UDDL.CodeGeneration.CPP.CodeGenerator.Generate(parser.DataDescription, new DirectoryInfo("../../../Test"));
				Console.WriteLine();
			}
		}
	}
}
